.message-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
}

.message {
  background-color: #eff6ff;
  padding: 8px 12px;
  border-radius: 8px;
  word-break: break-all;
}

.button-container {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* 移动到消息容器时，显示按钮 */
.message-container:hover .button-container {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* 最后一条信息，始终显示按钮 */
.message-container.is-last .button-container {
  opacity: 1;
}

.copy-button {
  padding: 8px;
  transition: all 0.3s;
  color: #909090;
}

.edit-button {
  padding: 8px;
  color: #909090;
}

@media (max-width: 768px) {
  .button-container {
    opacity: 1;
  }
}